package com.dbs.zstp.wiki.service.impl;

import com.dbs.zstp.common.model.Example;
import com.dbs.zstp.common.service.impl.BaseServiceImpl;
import com.dbs.zstp.wiki.mapper.WqzbMapper;
import com.dbs.zstp.wiki.model.Wqzb;
import com.dbs.zstp.wiki.service.WqzbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.common.BaseMapper;

/**
 * wqzb 操作类
 *
 * @author DBS-XQ
 * @create 2018-03-26 16:51
 **/
@Service
public class WqzbServiceImpl extends BaseServiceImpl<Wqzb> implements WqzbService<Wqzb> {

    @Autowired
    private WqzbMapper wqzbMapper;

    @Override
    public BaseMapper getMapper() {
        return wqzbMapper;
    }

    @Override
    public Example getExample(Wqzb wqzb) {
        Example example = new Example(wqzb.getClass());
        Example.Criteria criteria = example.createCriteria();

        return example;
    }

}
